.workflowEdit {
  .workflowBranch {
    display: inline-flex;
    position: relative;
    padding-top: 16px;
    background-color: #f5f5f9;
    &.workflowBoxPending {
      .workflowExecBeforeLine {
        &::before {
          background-color: #ccc !important;
        }
      }
    }
    ~ .workflowLineBtn {
      &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin: auto;
        width: 1px;
        height: 100%;
        background-color: #ccc;
      }
    }
    > .flexColumn {
      border-top: 1px solid #ccc;
      border-bottom: 1px solid #ccc;
      &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin: auto;
        width: 1px;
        height: 100%;
        background-color: #ccc;
      }
      &.workflowExecBeforeLine {
        &::before {
          width: 3px;
          background-color: #2196f3;
        }
      }
      > .workflowBox {
        padding-top: 36px !important;
        box-sizing: border-box;
      }
      .clearLeftBorder {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 100%;
        &::before {
          content: "";
          position: absolute;
          left: 0;
          top: -5px;
          width: calc(~'(100% - 1px) / 2');
          background: #f5f5f9;
          height: 10px;
        }
        &::after {
          content: "";
          position: absolute;
          left: 0;
          bottom: -5px;
          width: calc(~'(100% - 1px) / 2');
          background: #f5f5f9;
          height: 10px;
        }
      }
      .clearRightBorder {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        &::before {
          content: "";
          position: absolute;
          right: 0;
          top: -5px;
          width: calc(~'(100% - 1px) / 2');
          background: #f5f5f9;
          height: 10px;
        }
        &::after {
          content: "";
          position: absolute;
          right: 0;
          bottom: -5px;
          width: calc(~'(100% - 1px) / 2');
          background: #f5f5f9;
          height: 10px;
        }
      }
    }
    .workflowBranchBtn {
      font-size: 34px;
      position: absolute;
      top: 0;
      left: 50%;
      z-index: 3;
      width: 34px;
      cursor: pointer;
      margin-left: -17px;
      background: #f5f5f9;
      color: #2196f3;
      &:hover {
        color: #1565c0;
      }
    }
    .workflowBranchSpecial {
      width: 160px;
      height: 60px;
      margin: auto;
      .workflowName {
        padding: 0;
        align-items: center;
        justify-content: center;
        .workflowYes {
          color: #01CA86;
        }
        .workflowNo {
          color: #f44336;
        }
      }
    }
  }
  .workflowBranchHide {
    .workflowLineBtn {
      padding-top: 32px !important;
    }
  }
  .workflowBranchNumber {
    position: absolute;
    left: 0;
    top: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.workflowBranchTips {
  white-space: nowrap;
  height: 34px;
  width: 98px;
  .ant-tooltip-inner {
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: flex;
    justify-content: center;
  }
  .ant-tooltip-arrow {
    display: none !important;
  }
  .workflowBranchBtnSmall {
    width: 24px;
    height: 24px;
    background: #FFFFFF;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    i {
      font-size: 16px;
    }
    &.workflowBranchBtnSmallTips {
      &:after {
        width: 250px;
        word-break: break-all;
        white-space: normal;
      }
    }
  }
  .workflowBranchBtnBig {
    width: 34px;
    height: 34px;
    cursor: pointer;
  }
}
